<{if count($categories) gt 0}>

  <{foreach item=cat from=$categories name=i}>
    <{$cat.prefix}>
    <{if $cat.imgurl}><img src="<{$xoops_url}>/<{$catimgpath}>/<{$cat.imgurl}>" /><{/if}>
    <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=category p_key1=cid p_val1=$cat.cid}>">
      <{$cat.title}>
    </a> (<{$cat.itemnum}>)
    <{if ! $smarty.foreach.i.last}><br /><{/if}>
  <{/foreach}>

<{else}>
  <{$smarty.const._MD_NO_CATEGORY}>
<{/if}>

